package com.jy.rhin.model;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import com.jy.rhin.model.body.chushengyxzm.*;
import com.jy.rhin.model.body.xinshenger.ChuangJianZ;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
public class ChuShengYXZM extends ClinicalDocumentData {
	  //文档唯一id
    @XPath(path = "/id/@extension")
    String wenDangBH;

    //出生新生儿新生儿
    @XPath(path = "/recordTarget/patientRole")
    ChuShengXSR chuShengXSR;

    //创建者
    @XPath(path = "/author")
    ChuangJianZ chuangJianZ;

    //签发日期
    @XPath(path = "/legalAuthenticator/time/@value" , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE09_00_042_00))
    String qianFaRQ;

    //签发机构
    @XPath(path = "/legalAuthenticator/assignedEntity/representedOrganization/name/text()" , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE08_10_013_00))
    String qianFaJGMC;

    //主要健康问题章节
    @XPath(path = "/component/structuredBody/component/section/code[@code='11450-4'][@codeSystem='2.16.840.1.113883.6.1']/..")
    ZhuYaoJKWT zhuYaoJKWT;

    //生命体征
    @XPath(path = "/component/structuredBody/component/section/code[@code='8716-3'][@codeSystem='2.16.840.1.113883.6.1']/..")
    ShengMingTZ shengMingTZ;

    //母亲
    @XPath(path = "/component/structuredBody/component/section/code[@code='52'][@codeSystem='2.16.156.10011.2.3.3.8']/..")
    FuMu muQin;

    //父亲
    @XPath(path = "/component/structuredBody/component/section/code[@code='51'][@codeSystem='2.16.156.10011.2.3.3.8']/..")
    FuMu fuQin;

    //接生信息
    @XPath(path = "/component/structuredBody/component/section/code[@displayName='接生相关信息']/..")
    JieShengXX jieShengXX;

}
